<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var age = 17;
        if (age > 18) {
            alert('nihao')
        } else {
            alert('buhao')
        }
    </script>
</head>

<body>

</body>

</html>